package com.bjpowernode.controller;

import com.bjpowernode.entity.User;
import com.bjpowernode.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public class Test1
{


    @Autowired
    private UserMapper userMapper;

    @RequestMapping(value = "/abc")
    @ResponseBody
     public String testSelect() {
        System.out.println("----- selectAll method test ------");
        int i = userMapper.insert(new User(10l,"sunxuet",25,"1791540641"));
        System.out.println(i);
        return "abc";
        }

}
